#{extends 'head.html' /} 
#{set title:'蓝莲花 | 点书台' /} 

	<link rel="stylesheet" href="/public/stylesheets/alert.css" type="text/css" />
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<script type="text/javascript" src="/public/javascripts/adu.alert.js"></script>
	<!-- content 开始-->
    <div class="cont">
		<div style="margin:0px auto;width:500px;">
			<div class="m2_b_c1">
	         	<div class="m2c_a">书名：</div>
	            <div class="m2c_b"><input  id="booname" type="text"/></div>
	         </div>
	         <div class="m2_b_c1">
	         	<div class="m2c_a">作者：</div>
	            <div class="m2c_b"><input  id="author" type="text"/></div>
	         </div>
	          <div class="m2_b_c1">
	         	<div class="m2c_a">出版社：</div>
	            <div class="m2c_b"><input  id="pree" type="text"/></div>
	         </div>
	          <div class="m2_b_c1">
	         	<div class="m2c_a">isbn：</div>
	            <div class="m2c_b"><input  id="isbn" type="text"/></div>
	         </div>
	           <div class="m2_b_c1">
	         	<div class="m2c_a"></div>
	            <div ><input  style="width:100px;" id="sub" type="button" value="提交"/></div>
	         </div>
		</div>
		<script type="text/javascript">
			$("#sub").click(function(){
				$.ajax({
					type:'post',
					url :'/controllers/DotBooks.savadotbook',
					data:({"booname":$("#booname").val(),"author":$("#author").val(),"pree":$("#pree").val(),"isbn":$("#isbn").val()}),
					dataType:'html',
					success:function(e){
						if(e == "0"){
							aduAlert("点书失败","提示");
						}
						if(e == "1"){
							window.location.href = "/proscenium/memlog.html";
						}
						if(e == "2"){
							aduAlert("点书成功！","提示",function(){
								window.location.href = "";
							});
						}
					}
				});
			});
		</script>
	</div>